package com.cong.project.service;

import com.cong.project.model.entity.Likes;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cong.project.model.request.TokenUserRequest;

/**
* @author 86188
* @description 针对表【like(点赞表
)】的数据库操作Service
* @createDate 2022-10-31 15:22:24
*/
public interface LikeService extends IService<Likes> {

    /**
     * 点赞
     *
     * @param tokenUserRequest 令牌用户请求
     * @param postId           post id
     * @param type  点赞类型
     * @return {@link Integer}
     */
    Integer thumbUp(TokenUserRequest tokenUserRequest, Long postId, Integer type);


    /**
     * 保存点赞数量
     * 保存收藏数量
     *
     * @param contentId 内容id
     * @param type      类型
     * @return {@link Boolean}
     */
    Boolean saveThumbCollect(Long contentId,Integer type);
}
